package com.xnfh.equipment.viewmodel

import com.xnfh.common.bean.WeatherMessage
import com.xnfh.framework.base.BaseViewModel
import com.xnfh.framework.bean.RespStateData

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/27 19:19
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/27 19:19
 * @UpdateRemark: 更新说明
 */
class WeatherMessageViewModel: BaseViewModel() {
    private val weatherMessageViewModelRes = WeatherMessageViewModelRes()
    val weatherMessage = RespStateData<WeatherMessage>()

    fun requestWeatherMessage(id: String?) = launch {
        id?.let {
            weatherMessageViewModelRes.requestWeattherMessage(it,weatherMessage)
        }
    }
}